/*******************************************************************************
 * This file is part of blueprint4j www.blueprint4j.org.
 * 
 *     blueprint4j is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     blueprint4j is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with blueprint4j. If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package blueprint4j.db;

import blueprint4j.Constants;

public class FieldGroupAuthenticate extends FieldGroup {
	public FieldString username = null;
	public FieldPassword userpasswd = null;

	public FieldGroupAuthenticate(String name,Entity entity) {
		super(name,Constants.ICON_BASE+"apps/password.png",entity);
		username = new FieldString("username",Field.FIELD_NOT_NULL,"Username", 30,entity);
		userpasswd = new FieldPassword("userpasswd",Field.FIELD_NOT_NULL,"Password", 30,entity);
		
	Index.UniqueIndex index_username = new Index.UniqueIndex("index_username",new Field[]{username},entity);
	//Index.UniqueIndex index_password = new Index.UniqueIndex("index_userpasswd",new Field[]{userpasswd},entity);
	}
}

